PHP Classes

File: public/js/tinymce/src/themes/inlite/src/main/js/core/Matcher.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/inlite/src/main/js/core/Matcher.js   Download  
File: public/js/tinymce/src/themes/inlite/src/main/js/core/Matcher.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 847 bytes
 

Contents

Class file image Download
/** * Matcher.js * * Released under LGPL License. * Copyright (c) 1999-2016 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.themes.inlite.core.Matcher', [ ], function () { // result :: String, Rect -> Matcher.result var result = function (id, rect) { return { id: id, rect: rect }; }; // match :: Editor, [(Editor -> Matcher.result | Null)] -> Matcher.result | Null var match = function (editor, matchers) { for (var i = 0; i < matchers.length; i++) { var f = matchers[i]; var result = f(editor); if (result) { return result; } } return null; }; return { match: match, result: result }; } );