cordova-plugin-ace
Version:
Enables you to mix native UI and native code with your JavaScript and HTML. http://microsoft.github.io/ace
22 lines (17 loc) • 869 B
JavaScript
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
//
// A NativeObject whose instantiation was triggered in native code
//
function WrappedNativeObject(handle) {
// Don't call the base constructor, because we initialize this.handle differently
this._eventHandlers = {};
this._properties = {};
// Wrap an unknown native object. All we know is its handle.
this.handle = handle;
};
// Inheritance
WrappedNativeObject.prototype = Object.create(ace.NativeObject.prototype);
module.exports = WrappedNativeObject;