UNPKG

cordova-plugin-ace

Version:

Enables you to mix native UI and native code with your JavaScript and HTML. http://microsoft.github.io/ace

21 lines (17 loc) 842 B
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------------------------------------------------------- // // A container for a selectable item. // function SelectorItem(nativeTypeName) { if (!nativeTypeName) { throw new Error("You should instantiate a subclass instead"); } // The caller wants an arbitrary UIElement, but with the strongly-typed members from this class ace.UIElement.call(this, nativeTypeName); }; // Inheritance SelectorItem.prototype = Object.create(ace.ContentControl.prototype); module.exports = SelectorItem;