OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 /** | |
6 * Custom bindings for the mojoPrivate API. | |
7 */ | |
8 | |
9 let binding = require('binding').Binding.create('mojoPrivate'); | |
not at google - send to devlin
2015/01/16 20:25:14
I was curious about using "let" over "var", and ap
| |
10 | |
11 binding.registerCustomHook(function(bindingsAPI) { | |
12 let apiFunctions = bindingsAPI.apiFunctions; | |
13 | |
14 apiFunctions.setHandleRequest('define', function(name, deps, factory) { | |
15 define(name, deps || [], factory); | |
16 }); | |
17 }); | |
18 | |
19 exports.binding = binding.generate(); | |
OLD | NEW |