This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { PropTypes } from 'react'; | |
import Portal from 'react-portal'; | |
import Tooltip from 'react-portal-tooltip'; | |
const withClickOutside = require('react-onclickoutside'); | |
import '../assets/style.less'; | |
const BEACON_HEIGHT = 30; | |
const BEACON_WIDTH = 30; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var countries = [ | |
'Afghanistan', 'Albania', 'Algeria', 'Andorra', 'Angola', 'Antigua & Deps', | |
'Argentina', 'Armenia', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', | |
'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', | |
'Benin', 'Bhutan', 'Bolivia', 'Bosnia Herzegovina', 'Botswana', 'Brazil', | |
'Brunei', 'Bulgaria', 'Burkina', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', | |
'Cape Verde', 'Central African Rep', 'Chad', 'Chile', 'China', 'Colombia', | |
'Comoros', 'Congo', 'Congo {Democratic Rep}', 'Costa Rica', 'Croatia', | |
'Cuba', 'Cyprus', 'Czech Republic', 'Denmark', 'Djibouti', 'Dominica', | |
'Dominican Republic', 'East Timor', 'Ecuador', 'Egypt', 'El Salvador', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* grunt-package-minifier | |
* | |
* | |
* Copyright (c) 2013 Matthew Gertner | |
* Licensed under the MIT license. | |
*/ | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chai = require('chai'), | |
expect = chai.expect, | |
Binder = require('../../../code/firefox/js/binder'); | |
function TestObject() { | |
} | |
TestObject.prototype = { | |
method: function() { | |
return 42; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var methodCache = {}; | |
function Binder(thisArg, methodName) { | |
this._thisArg = thisArg; | |
this._methodName = methodName; | |
} | |
Binder.prototype = { |